package com.amumu.drama.common.modules.category.mapping;

import com.amumu.drama.common.base.mapstruct.BaseMapping;
import com.amumu.drama.common.modules.category.vo.GameTemplateInfoVo;
import com.amumu.drama.model.PmsProductTemplate;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

/**
 * @author sunzhuang
 * @date 2024/10/9 15:02
 * @slogan 天下风云出我辈, 一入代码岁月催
 * @desc todo
 */
@Mapper(componentModel = "spring")
public interface GameTemplateInfoVoMapping extends BaseMapping<PmsProductTemplate, GameTemplateInfoVo> {
    GameTemplateInfoVoMapping INSTANCE = Mappers.getMapper(GameTemplateInfoVoMapping.class);

    /**
     * 正向映射的后置处理，List映射会自动继承此配置
     *
     * @param src
     * @param dest
     */
    @Override
    default void afterConvertTo(PmsProductTemplate src, GameTemplateInfoVo dest) {
    }
}
